package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.HashSet;


/**
 * HashSet to list node, list node to HashSet
 * @author shnireck
 *
 */
public class HashSetSerializer extends SetSerializer <HashSet <Object>> {

	public HashSetSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public HashSet <Object> createObject () throws GamlException { return new HashSet <Object> ();}

	@Override
	public Class <HashSet <Object>> getObjectClass () { return (Class <HashSet <Object>>) new HashSet ().getClass (); }

}